<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数组</title>
    <script type="text/javascript">
        var arr1 = new Array();
        arr1[0] = 1;
        arr1[1] = "11";
        arr1[2] = false;
        arr1[3] = new Date();
        arr1[4] = 11111;
        arr1[7] = 123;
        var arr2 = [1,2,3,4,5];
        //alert(arr1.length);
        /*for (var i = 0; i < arr1.length; i++) {
            alert(arr1[i]);
        }*/
        for(var i in arr2){
            alert(arr2[i]);
        }
    </script>
</head>
<body>

</body>
</html>